import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import { resolve } from 'path'

export default defineConfig({
  plugins: [uni()],
  resolve: {
    alias: {
      '@': resolve(__dirname, '.'),
      '@components': resolve(__dirname, 'components'),
      '@common': resolve(__dirname, 'common')
    }
  },
  build: {
    rollupOptions: {
      external: ['uni_modules/vk-uview-ui']
    }
  }
}) 